
var aAnswers = new Array( 3 );

aAnswers[ 0 ] = 2;
aAnswers[ 1 ] = 1;
aAnswers[ 2 ] = 2;

function processQuiz()
{
	var aResponses = document.forms.form1.question0;
	
	var nCorrectResponses = 0;
	
		
	if( aResponses[ aAnswers[ 0 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	
	}
	
	
		
	aResponses = document.forms.form1.question1;
	
	if( aResponses[ aAnswers[ 1 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	
	}
	
		
	aResponses = document.forms.form1.question2;
	
	if( aResponses[ aAnswers[ 2 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	
	}
	
	

	if( nCorrectResponses >= 3 )
	{
		alert( "Congratulations! You got " + nCorrectResponses + " answers correct. Please click NEXT to continue.");
	}
	else
	{
		alert( "Sorry!  You only got " + nCorrectResponses + " answers correct!  Please try again." );
	}
	
}